
import request from "@/utils/request";

enum API {
    SYSPARAM_URL = "/itp/api/system/param",
} 
export default{
    addSysParam:(data:any)=>request.post(`${API.SYSPARAM_URL}`,data),//新增
    getSysParamList:(key:any)=>request.get(`${API.SYSPARAM_URL}/findlist?key=${key}`),//查询
    getDetailById:(id:number)=>request.get(`${API.SYSPARAM_URL}/id?id=${id}`),//通过id查询
    editItem:(obj:any)=>request.put(`${API.SYSPARAM_URL}`,obj),//修改
    delSysParam:(id:number) => request.delete(`${API.SYSPARAM_URL}?id=${id}`),//删除
}